<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
	pageEncoding="ISO-8859-1"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%@ taglib prefix="s" uri="/struts-tags"%>

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

<title>My Virtual Library</title>
<link rel="stylesheet" href="style.css" type="text/css" charset="utf-8" />

</head>

<body>

<div id="wrapper">
<h1><em>MyVirtual</em> Library</h1>
<jsp:include page="header.jsp" />
<div id="topcon">
<div id="topcon-inner">
<h2>Welcome to My Virtual Library</h2>
<p><jsp:include page="description.jsp" /></p>
</div>
</div>

<div id="content">
<div id="body">
<div class="right">
<p>Search by first name and last name or email address or phone
above.</p>

<br />
<s:actionerror /> <s:actionmessage /> <s:form
	action="EditBooks.action" method="POST">
	<table>
		<tr>
			<td>Title</td>
			<td>Location</td>
			<td>Status</td>
			<td>Visibility</td>
			<td>Edit</td>
			<td>Delete</td>
			<td>Recall</td>
		</tr>

		<s:iterator value="resultList">
			<tr>
				<td><s:property value="title" /></td>
				<td><s:property value="location" /></td>
				<td><s:property value="copyStatus" /></td>
				<td><s:property value="visible" /></td>
				<td><a href="<s:url action="EditBooks">
    				<s:param name="bookId" value="%{copyId}" /></s:url>">Edit Item</a></td>
				<td><a href="<s:url action="DeleteBooks">
					<s:param name="bkId" value="%{copyId}" /></s:url>">Delete Item</a></td>
				<td><a href="<s:url action="RecallBooks">
					<s:param name="bId" value="%{copyId}" /></s:url>">Recall Item</a></td>				
					
					
			</tr>
		</s:iterator>

	</table>
</s:form></div>



<div class="clear"></div>
</div>
<jsp:include page="footer.html" /></div>
</body>
</html>